import request from "../../utils/request";

const getPage = params => request({
  url: 'v1/positions/page',
  method: 'get',
  params: params
});

const create = (data) => request({
  url: 'v1/positions',
  method: 'post',
  data: data
});

const update = (data) => request({
  url: `v1/positions/${data.Id}`,
  method: 'put',
  data: data
});

export default {
  getPage,
  create,
  update
}
